package com.dragons.spring5.aop.xml_annotation;

import org.junit.Test;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestAop {

    @Test
    public void testAdd(){
        BeanFactory context = new ClassPathXmlApplicationContext("aop.xml");
        User3 user3 = context.getBean("user3",User3.class);
        user3.add();
    }

}
